cmake_minimum_required(VERSION 3.10)

project(dbserver)

add_compile_options(-g -w)

include_directories(
    ./Coroutine
    ./DataBase
    ./Socket
    ./base
    ./app
)

set(BUILD_DIR bin)
set(APP app)
add_subdirectory(base ${BUILD_DIR}/base)
add_subdirectory(DataBase ${BUILD_DIR}/db)
add_subdirectory(Socket ${BUILD_DIR}/socket)
add_subdirectory(Coroutine ${BUILD_DIR}/co)

add_subdirectory(app ${APP})